package com.jason.kotlin.gank.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jason.kotlin.gank.R
import com.jason.kotlin.gank.model.RollCommonBean

/**
 * @description: RollCommonQueryAdapter
 *
 * @author ChenBaoyang
 * @date 4/23/21 15:40
 */
class RollCommonQueryAdapter(layoutId: Int) : BaseQuickAdapter<RollCommonBean, BaseViewHolder>(layoutId) {


    override fun convert(holder: BaseViewHolder, item: RollCommonBean) {
        item.run {
            holder.setText(R.id.tv_title, title)
            holder.setText(R.id.tv_desc, desc)
        }
    }
}